#ifndef MID_TIMER_H
#define MID_TIMER_H


#include <stdint.h>


typedef enum Timer_number_t
{
    E_TIMER_1,
    E_TIMER_2,
    E_TIMER_3,
    E_TIMER_4,
    E_TIMER_MAX
}Timer_number_t;

typedef void (*Mid_Timer_callback)(void);

typedef struct Mid_Timer_t
{
    uint8_t  enable;
    uint32_t count;
    uint32_t ticks;
    Mid_Timer_callback Timer_callbak;
}Mid_Timer_t;


uint8_t Mid_Timer_Set(Timer_number_t timer_n,\
                    uint32_t ticks,
                    Mid_Timer_callback Timer_callbak);

uint8_t Mid_Timer_Reset(Timer_number_t timer_n);

#endif